<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>户型管理</title>
<link href="css/css.css" rel="stylesheet" type="text/css" />
<script src="./js/WdatePicker.js" type="text/javascript"></script>
<script src="./js/jquery-1.4.1.min.js" type="text/javascript"></script>
<script src="./js/IndexManager.js" type="text/javascript"></script>
<script src="./js/selectProject.js" type="text/javascript"></script>
<script type="text/javascript">
	function openWin() {

		showModalDialog(
				"/wanda/project/Wd_ht_project_add.do",
				"example04",
				"dialogWidth:600px;dialogHeight:300px;dialogLeft:200px;dialogTop:150px;center: yes;help:yes;resizable:yes;status:yes")
	}

	function openWin1() {

		/* showModalDialog(
				"/wanda/project/Wd_ht_project_add.do",
				"example04",
				"dialogWidth:600px;dialogHeight:300px;dialogLeft:200px;dialogTop:150px;center: yes;help:yes;resizable:yes;status:yes") */
		location.href = "houseType_to_add.do";
	}
</script>
</head>
<body style="margin-top: 5px; background: #EFF3FF;">
	<form method="post" action="houseType.do" id="form1">

		<div id="divOne">
			<div>
				<table width="100%">
					<tr id="ProjectsType">
						<td width="7%">户型名称：</td>
						<td width="15%"><input name="apartmentLayout" type="text"
							id="txtProjectSelect" onclick="selectProductName();"
							style="width:95%;" /></td>
						<td width="10%"><input
							style="border-style: none; border-color: inherit; border-width: 0px; background-image: url('images/search.gif'); width: 100px; height: 24px;"
							type="submit" value="  " /></td>
						<td align="right"><input type="button" id="btnAdd"
							class="button" value="添加" onclick="openWin1()" /></td>
					</tr>

				</table>
			</div>
			<div class="cxlb_2" id="indexs">
				<table width="100%" class="tablist" border="1">
					<thead>
						<tr>
							<th width="20%">序号</th>
							<th width="20%">户型名称</th>
							<th width="15%">修改人</th>
							<th width="15%">修改时间</th>
							<!-- <th width="15%">删除人</th>
							<th width="15%">删除时间</th> -->
							<!-- <th width="15%">修改时间</th>
							<th width="">备注</th> -->
							<th width="">操作</th>

						</tr>
					</thead>
					<tbody id="tab">
						<c:forEach var="bean" items="${list }">
							<tr>
								<td width="20%">${bean.apartmentLayoutId }</td>
								<td width="15%">${bean.apartmentLayout }</td>

								<td width="15%">${bean.updateUser }</td>

								<td width="15%"><fmt:formatDate value="${bean.updateTime }"
										pattern="yyyy-MM-dd" /></td>

								<td width=""><a
									href="toupdateApartmentLayout.do?apartmentLayoutId=${bean.apartmentLayoutId }">
										修改</a> <a
									href="deletApartmentLayout.do?apartmentLayoutId=${bean.apartmentLayoutId }">
										删除</a></td>
							</tr>

						</c:forEach>

					</tbody>
					<tr>

					</tr>
				</table>
				<script type="text/javascript">
				<!--
					var Ptr = document.getElementById("tab")
							.getElementsByTagName("tr");
					function pageLoad() {
						for (i = 1; i < Ptr.length + 1; i++) {
							Ptr[i - 1].className = (i % 2 > 0) ? "t1" : "t2";
						}
					}
					window.onload = pageLoad;
					for (var i = 0; i < Ptr.length; i++) {
						Ptr[i].onmouseover = function() {
							this.tmpClass = this.className;
							this.className = "t3";

						};
						Ptr[i].onmouseout = function() {
							this.className = this.tmpClass;
						};
					}
				//-->
				</script>
			</div>
			<div id="pageType">

				<!-- AspNetPager 7.3.2  Copyright:2003-2010 Webdiyer (www.webdiyer.com) -->
				<div id="AspNetPager1" class="anpager"
					style="width:100%;text-align:left;">
					<div align="left" class="anpager" style="width:60%;float:left;">
						<a disabled="disabled" style="margin-right:10px;">首页</a><a
							disabled="disabled" style="margin-right:10px;">上一页</a><span
							class="cpb" style="margin-right:10px;">1</span><a
							disabled="disabled" style="margin-right:10px;">下一页</a><a
							disabled="disabled" style="margin-right:10px;">尾页</a>
					</div>
					<div class="anpager" style="width:40%;float:left;">
						记录总数：<font color="blue"><b>8</b></font> 总页数：<font color="blue"><b>1</b></font>
						当前页：<font color="red"><b>1</b></font>
					</div>
				</div>
				<!-- AspNetPager 7.3.2  Copyright:2003-2010 Webdiyer (www.webdiyer.com) -->


			</div>
		</div>
		<input type="hidden" name="hidProductIdSelect" id="hidProductIdSelect" />
	</form>
</body>
</html>
